<?php
$date = new dateTime();
date_sub($date, date_interval_create_from_date_string('6 months'));
echo date_format($date, 'm-d');
?>